package com.hdc.hdc.mainmenu2.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hdc.hdc.mainmenu2.entity.Content;
import com.hdc.hdc.mainmenu2.repository.ContentRepository;
import com.hdc.hdc.mainmenu2.service.ContentServiceI;

/**
 * 详情服务类
 * @author gxy
 *	2018年4月11日
 *	hdc.mainmenu2
 *
 */
@Service
public class ContentServiceImpl implements ContentServiceI {
	
	@Autowired
	private ContentRepository contentRepository;

	@Override
	public Content getContentByCompanyCode(String companyCode) {
		return contentRepository.getOne(companyCode);
	}

}
